[gd_scene load_steps=11 format=3 uid="uid://dal8b23dqqxef"]

[ext_resource type="Script" path="res://scenes/hud/hud.gd" id="1_3t6m6"]
[ext_resource type="Texture2D" uid="uid://dmdi7jci40nth" path="res://assets/sprites/hud/reloade.png" id="2_esox0"]
[ext_resource type="Texture2D" uid="uid://c6qjjn8gbav7w" path="res://assets/sprites/hud/letter.png" id="3_xwc6j"]
[ext_resource type="Texture2D" uid="uid://uhwtmtvx4qw" path="res://assets/sprites/hud/move_left..png" id="4_8a5do"]
[ext_resource type="Texture2D" uid="uid://dou7tc1mnc6wc" path="res://assets/sprites/hud/move_right.png" id="5_n37kt"]
[ext_resource type="Texture2D" uid="uid://btvrg8me3my81" path="res://assets/sprites/hud/jump.png" id="6_nryc5"]

[sub_resource type="Animation" id="Animation_fc1s7"]
resource_name = "hide_interaction_prompt"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("MarginContainer/VBoxContainer/HBoxContainer2/InteractButton:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
}

[sub_resource type="Animation" id="Animation_q6xkg"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("MarginContainer/VBoxContainer/HBoxContainer2/InteractButton:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 0)]
}

[sub_resource type="Animation" id="Animation_guvhw"]
resource_name = "show_interaction_prompt"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("MarginContainer/VBoxContainer/HBoxContainer2/InteractButton:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_61wjg"]
_data = {
"RESET": SubResource("Animation_q6xkg"),
"hide_interaction_prompt": SubResource("Animation_fc1s7"),
"show_interaction_prompt": SubResource("Animation_guvhw")
}

[node name="HUD" type="CanvasLayer"]
layer = 10
script = ExtResource("1_3t6m6")

[node name="MarginContainer" type="MarginContainer" parent="."]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_left = 3
theme_override_constants/margin_top = 3
theme_override_constants/margin_right = 3
theme_override_constants/margin_bottom = 3

[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
layout_mode = 2

[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
alignment = 2

[node name="ReloadButton" type="TextureButton" parent="MarginContainer/VBoxContainer/HBoxContainer"]
layout_mode = 2
texture_normal = ExtResource("2_esox0")

[node name="HBoxContainer2" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 10
alignment = 1

[node name="InteractButton" type="TextureButton" parent="MarginContainer/VBoxContainer/HBoxContainer2"]
modulate = Color(1, 1, 1, 0)
layout_mode = 2
texture_normal = ExtResource("3_xwc6j")

[node name="TouchButtons" type="Node2D" parent="MarginContainer"]

[node name="LeftButton" type="TouchScreenButton" parent="MarginContainer/TouchButtons"]
position = Vector2(3, 157)
texture_normal = ExtResource("4_8a5do")
action = "player_left"
visibility_mode = 1

[node name="RightButton" type="TouchScreenButton" parent="MarginContainer/TouchButtons"]
position = Vector2(39, 157)
texture_normal = ExtResource("5_n37kt")
action = "player_right"
visibility_mode = 1

[node name="JumpButton" type="TouchScreenButton" parent="MarginContainer/TouchButtons"]
position = Vector2(349, 157)
texture_normal = ExtResource("6_nryc5")
action = "player_jump"
visibility_mode = 1

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_61wjg")
}

[connection signal="pressed" from="MarginContainer/VBoxContainer/HBoxContainer/ReloadButton" to="." method="_on_reload_button_pressed"]
[connection signal="pressed" from="MarginContainer/VBoxContainer/HBoxContainer2/InteractButton" to="." method="_on_interact_button_pressed"]
